import { Get,Post,Put,Delete } from "../utils/axios";

// 消息查询
export const FindAllMessage =  (params:object) => {
    let ret = Get('message',params);
    return ret;
    // console.log(ret);
};
// 消息查询
export const FindMessageCount =  (params:object) => {
    let ret = Get('message/count',params);
    return ret;
    // console.log(ret);
};
// 消息添加
export const AddMessage =  (params:object) => {
    let ret =  Post('message',params);
    return ret;
    // console.log(ret);
};
// 消息修改
export const UpdateMessage =  (params:object) => {
    let ret =  Put('message',params);
    return ret;
    // console.log(ret);
};
// 消息删除
export const DeleteMessage =  (params:any) => {
    let ret =  Delete('message/'+params.id);
    return ret;
    // console.log(ret);
};
// 消息批量删除
export const delMessages =  (params:any) => {
    let ret =  Get('message/list',params);
    return ret;
    // console.log(ret);
};